﻿using System;
using System.Collections.Generic;

namespace Allegro.TaskExecution
{
    /// <summary>
    /// Condition to be used as execution condition for tasks
    /// </summary>
    public interface IExecutionCondition
    {
        /// <summary>
        /// Return true if the coniditon is met
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        bool IsTrue(IExecutionContext context);
    }
}
